from rest_framework import serializers

from .models import BannerModel, NavModel


class BannerModelSerializer(serializers.ModelSerializer):

    class Meta:
        model = BannerModel
        fields = ['id', 'image', 'link']


class NavModelSerializer(serializers.ModelSerializer):

    class Meta:
        model = NavModel
        fields = ['id', 'name', 'link', 'opt']













